<!DOCTYPE html>



  


<html class="theme-next gemini use-motion" lang="zh-Hans">
<head><meta name="generator" content="Hexo 3.8.0">
  <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, 
maximum-scale=1">
<script src="//cdn.bootcss.com/pace/1.0.2/pace.min.js"></script>
<meta name="theme-color" content="#222">

<script>
    (function () {
        if ('') {
            if (prompt('请输入文章密码') !== '') {
                alert('密码错误！');
                if (history.length === 1) {
                    location.replace("http://xxxxxxx.xxx"); // 这里替换成你的首页
                } else {
                    history.back();
                }
            }
        }
    })();
</script>


  
  
    
    
  <script src="/lib/pace/pace.min.js?v=1.0.2"></script>
  <link href="/lib/pace/pace-theme-minimal.min.css?v=1.0.2" rel="stylesheet">







<meta http-equiv="Cache-Control" content="no-transform">
<meta http-equiv="Cache-Control" content="no-siteapp">
















  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css">







<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css">

<link href="/css/main.css?v=5.1.4" rel="stylesheet" type="text/css">


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png?v=5.1.4">


  <link rel="mask-icon" href="/images/logo.svg?v=5.1.4" color="#222">





  <meta name="keywords" content="C++,Unreal Engine,Excel 读表,">










<meta name="description" content="PC-Hero 的道具模块(五) —— 修改玩家数值  读表 修改玩家血，经验等基础数值 修改移动速度 修改技能数量   读表读表部分代码,FileManager.h 1234567891011class FileManager&amp;#123;public:	//读取csv文件信息	void loadCSVData(string fileName, map&amp;lt;string, map&amp;lt;stri">
<meta name="keywords" content="C++,Unreal Engine,Excel 读表">
<meta property="og:type" content="article">
<meta property="og:title" content="PC-Hero 的道具模块(五) —— 修改玩家数值">
<meta property="og:url" content="http://sabistian.cn/2019/08/17/PC-hero 道具模块文档五 - 修改玩家数值/index.html">
<meta property="og:site_name" content="Sabistian    |      Dear">
<meta property="og:description" content="PC-Hero 的道具模块(五) —— 修改玩家数值  读表 修改玩家血，经验等基础数值 修改移动速度 修改技能数量   读表读表部分代码,FileManager.h 1234567891011class FileManager&amp;#123;public:	//读取csv文件信息	void loadCSVData(string fileName, map&amp;lt;string, map&amp;lt;stri">
<meta property="og:locale" content="zh-Hans">
<meta property="og:image" content="https://sabistianblogimg.oss-cn-beijing.aliyuncs.com/38.png">
<meta property="og:image" content="https://sabistianblogimg.oss-cn-beijing.aliyuncs.com/39.png">
<meta property="og:image" content="https://sabistianblogimg.oss-cn-beijing.aliyuncs.com/40.png">
<meta property="og:updated_time" content="2019-08-17T07:06:51.252Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="PC-Hero 的道具模块(五) —— 修改玩家数值">
<meta name="twitter:description" content="PC-Hero 的道具模块(五) —— 修改玩家数值  读表 修改玩家血，经验等基础数值 修改移动速度 修改技能数量   读表读表部分代码,FileManager.h 1234567891011class FileManager&amp;#123;public:	//读取csv文件信息	void loadCSVData(string fileName, map&amp;lt;string, map&amp;lt;stri">
<meta name="twitter:image" content="https://sabistianblogimg.oss-cn-beijing.aliyuncs.com/38.png">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Gemini',
    version: '5.1.4',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="http://sabistian.cn/2019/08/17/PC-hero 道具模块文档五 - 修改玩家数值/">





  <title>PC-Hero 的道具模块(五) —— 修改玩家数值 | Sabistian    |      Dear</title>
  








</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">Sabistian    |      Dear</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle"></p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br>
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/about/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user"></i> <br>
            
            关于
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/tags/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br>
            
            标签
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/categories/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br>
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br>
            
            归档
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://sabistian.cn/2019/08/17/PC-hero 道具模块文档五 - 修改玩家数值/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="邱灵雨">
      <meta itemprop="description" content>
      <meta itemprop="image" content="/images/headicon.png">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Sabistian    |      Dear">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">PC-Hero 的道具模块(五) —— 修改玩家数值</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2019-08-17T12:35:05+08:00">
                2019-08-17
              </time>
            

            

            
          </span>

          
            <span class="post-category">
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/UE4/" itemprop="url" rel="index">
                    <span itemprop="name">UE4</span>
                  </a>
                </span>

                
                
              
            </span>
          

          
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <h1 id="PC-Hero-的道具模块-五-——-修改玩家数值"><a href="#PC-Hero-的道具模块-五-——-修改玩家数值" class="headerlink" title="PC-Hero 的道具模块(五) —— 修改玩家数值"></a>PC-Hero 的道具模块(五) —— 修改玩家数值</h1><blockquote>
<ul>
<li>读表</li>
<li>修改玩家血，经验等基础数值</li>
<li>修改移动速度</li>
<li>修改技能数量</li>
</ul>
</blockquote>
<h2 id="读表"><a href="#读表" class="headerlink" title="读表"></a>读表</h2><p>读表部分代码,FileManager.h</p>
<figure class="highlight c++"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><span class="line"><span class="class"><span class="keyword">class</span> <span class="title">FileManager</span></span></span><br><span class="line"><span class="class">&#123;</span></span><br><span class="line"><span class="keyword">public</span>:</span><br><span class="line"></span><br><span class="line">	<span class="comment">//读取csv文件信息</span></span><br><span class="line">	<span class="function"><span class="keyword">void</span> <span class="title">loadCSVData</span><span class="params">(<span class="built_in">string</span> fileName, <span class="built_in">map</span>&lt;<span class="built_in">string</span>, <span class="built_in">map</span>&lt;<span class="built_in">string</span>, <span class="built_in">string</span>&gt;&gt;&amp; mData)</span></span>;</span><br><span class="line"></span><br><span class="line">	<span class="comment">//解析单行数据 放入到指定的容器中</span></span><br><span class="line">	<span class="function"><span class="keyword">void</span> <span class="title">parseLineToVector</span><span class="params">(<span class="built_in">string</span> firstLine, <span class="built_in">vector</span>&lt;<span class="built_in">string</span>&gt;&amp;vFirst)</span></span>;</span><br><span class="line"></span><br><span class="line">&#125;;</span><br></pre></td></tr></table></figure>

<p>FileManager.cpp</p>
<a id="more"></a> 
<figure class="highlight c++"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">void</span> FileManager::loadCSVData(<span class="built_in">string</span> fileName, <span class="built_in">map</span>&lt;<span class="built_in">string</span>, <span class="built_in">map</span>&lt;<span class="built_in">string</span>, <span class="built_in">string</span>&gt;&gt;&amp; mData)</span><br><span class="line">&#123;</span><br><span class="line">	<span class="comment">//读文件</span></span><br><span class="line">	<span class="function">ifstream <span class="title">ifs</span><span class="params">(fileName)</span></span>;</span><br><span class="line"></span><br><span class="line">	<span class="keyword">if</span> (!ifs.is_open())</span><br><span class="line">	&#123;</span><br><span class="line">		<span class="built_in">cout</span> &lt;&lt; <span class="string">"文件打开失败"</span> &lt;&lt; <span class="built_in">endl</span>;</span><br><span class="line">		<span class="keyword">return</span>;</span><br><span class="line">	&#125;</span><br><span class="line"></span><br><span class="line">	<span class="built_in">string</span> firstLine;</span><br><span class="line">	ifs &gt;&gt; firstLine;</span><br><span class="line"></span><br><span class="line">	<span class="comment">//cout &lt;&lt; "第一行数据为： " &lt;&lt; firstLine &lt;&lt; endl;</span></span><br><span class="line"></span><br><span class="line">	<span class="comment">//将第一行数据截取到容器中</span></span><br><span class="line">	<span class="built_in">vector</span>&lt;<span class="built_in">string</span>&gt;vFirst;</span><br><span class="line"></span><br><span class="line">	<span class="comment">//将字符串解析后 放入到 容器中</span></span><br><span class="line">	parseLineToVector(firstLine, vFirst);</span><br><span class="line"></span><br><span class="line">	<span class="comment">////解析第二行</span></span><br><span class="line">	<span class="comment">//string secondLine;</span></span><br><span class="line">	<span class="comment">//ifs &gt;&gt; secondLine;</span></span><br><span class="line">	<span class="comment">//vector&lt;string&gt;vSecond;</span></span><br><span class="line">	<span class="comment">//parseLineToVector(secondLine, vSecond);</span></span><br><span class="line"></span><br><span class="line">	<span class="comment">//最大map容器 ，存放所有数据</span></span><br><span class="line">	<span class="comment">//map&lt;string, map&lt;string, string&gt;&gt;mData;</span></span><br><span class="line"></span><br><span class="line">	<span class="built_in">string</span> otherLine;</span><br><span class="line">	<span class="keyword">while</span> (ifs &gt;&gt; otherLine)</span><br><span class="line">	&#123;</span><br><span class="line">		<span class="built_in">vector</span>&lt;<span class="built_in">string</span>&gt;otherV;</span><br><span class="line">		parseLineToVector(otherLine, otherV);</span><br><span class="line"></span><br><span class="line">		<span class="comment">//for_each(otherV.begin(), otherV.end(), [](string str)&#123;cout &lt;&lt; str &lt;&lt; " "; &#125;);</span></span><br><span class="line">		<span class="comment">//cout &lt;&lt; endl;</span></span><br><span class="line"></span><br><span class="line">		<span class="comment">//将key 和 value 组装到一个map容器中</span></span><br><span class="line">		<span class="built_in">map</span>&lt;<span class="built_in">string</span>, <span class="built_in">string</span>&gt;m;</span><br><span class="line">		<span class="keyword">for</span> (<span class="keyword">int</span> i = <span class="number">0</span>; i &lt; otherV.size(); i++)</span><br><span class="line">		&#123;</span><br><span class="line">			m.insert(make_pair(vFirst[i], otherV[i]));</span><br><span class="line">		&#125;</span><br><span class="line"></span><br><span class="line">		mData.insert(make_pair(otherV[<span class="number">0</span>], m));</span><br><span class="line">	&#125;</span><br><span class="line"></span><br><span class="line">	<span class="comment">/*cout &lt;&lt; "1号姓名： " &lt;&lt; mData["1"]["heroName"] &lt;&lt; endl;</span></span><br><span class="line"><span class="comment">	cout &lt;&lt; "3号简介： " &lt;&lt; mData["3"]["heroInfo"] &lt;&lt; endl;*/</span></span><br><span class="line"></span><br><span class="line">	ifs.close();</span><br><span class="line">&#125;</span><br><span class="line"><span class="keyword">void</span> FileManager::parseLineToVector(<span class="built_in">string</span> firstLine, <span class="built_in">vector</span>&lt;<span class="built_in">string</span>&gt;&amp; vFirst)</span><br><span class="line">&#123;</span><br><span class="line">	<span class="keyword">int</span> pos = <span class="number">-1</span>;</span><br><span class="line">	<span class="keyword">int</span> start = <span class="number">0</span>;</span><br><span class="line"></span><br><span class="line">	<span class="comment">// heroId,heroName,heroHp,heroAtk,heroDef,heroInfo</span></span><br><span class="line">	<span class="keyword">while</span> (<span class="literal">true</span>)</span><br><span class="line">	&#123;</span><br><span class="line">		pos = firstLine.find(<span class="string">","</span>, start);</span><br><span class="line">		<span class="keyword">if</span> (pos == <span class="number">-1</span>)</span><br><span class="line">		&#123;</span><br><span class="line">			<span class="built_in">string</span> tmpStr = firstLine.substr(start, firstLine.size() - start);</span><br><span class="line">			vFirst.push_back(tmpStr);</span><br><span class="line">			<span class="keyword">break</span>;</span><br><span class="line">		&#125;</span><br><span class="line">		<span class="built_in">string</span> tmpStr = firstLine.substr(start, pos - start);</span><br><span class="line">		vFirst.push_back(tmpStr);</span><br><span class="line">		start = pos + <span class="number">1</span>;</span><br><span class="line">	&#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h2 id="修改玩家血，经验等基础数值"><a href="#修改玩家血，经验等基础数值" class="headerlink" title="修改玩家血，经验等基础数值"></a>修改玩家血，经验等基础数值</h2><p>这部分大概花了一天的时间才找到他具体的地方。。修改只是调用一个函数即可，在每帧中，一个severloop循环就会根据unit_man的状态来修改属性，通知前端。由于hero的第6个技能是固定的治疗术，笔者想着通过按键调用事件-&gt;客户端发送消息-&gt;服务端接收消息-&gt;处理的思路。去寻找可能修改玩家属性的地方。<br><img src="https://sabistianblogimg.oss-cn-beijing.aliyuncs.com/38.png" alt="38"><br>在玩家的按键蓝图中，通过touchstart 函数来进入C++代码，发送消息。</p>
<p><img src="https://sabistianblogimg.oss-cn-beijing.aliyuncs.com/39.png" alt="39"><br>在ResponseClick 函数中，向服务器发送消息</p>
<figure class="highlight c++"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">bool</span> USkillClient::ResponseClick() &#123;</span><br><span class="line">	<span class="keyword">if</span> (CanResponseClick()) &#123;</span><br><span class="line"><span class="meta">#<span class="meta-keyword">ifdef</span> GLSKILL_LOG</span></span><br><span class="line">		LogSkillProcedure(FString::Printf(TEXT(<span class="string">"ResponseClick"</span>)));</span><br><span class="line"><span class="meta">#<span class="meta-keyword">endif</span></span></span><br><span class="line">		<span class="keyword">if</span> (!IsExtraSectionFinished()) &#123;</span><br><span class="line">			FinishedCurrentSection();</span><br><span class="line">		&#125;</span><br><span class="line"></span><br><span class="line">		<span class="keyword">if</span> (m_OwnerGuid == UUnitManClient::GetInstance().GetCurPlayerGuid()) &#123;</span><br><span class="line">			AFaithCharacter* CharPtr = UFaithCharacterMan::GetInstance().GetMainCharacter();</span><br><span class="line">			<span class="keyword">if</span> (CharPtr) &#123;</span><br><span class="line">				CharPtr-&gt;GetSkillEnv().OnReqResponseClick(m_SkillSendId);</span><br><span class="line">			&#125;</span><br><span class="line">		&#125;</span><br><span class="line">		faith::skill_proto_response_click req;</span><br><span class="line">		<span class="comment">//req.set_skill_id(GetSkillData(faith::e_skill_info_template_id));</span></span><br><span class="line">		req.set_skill_id(m_SkillSendId);<span class="comment">//技能升级临界处理</span></span><br><span class="line">		<span class="keyword">if</span> (!m_ClickReqLocation.IsNearlyZero()) &#123;</span><br><span class="line">			req.add_skill_location(m_ClickReqLocation.X);</span><br><span class="line">			req.add_skill_location(m_ClickReqLocation.Y);</span><br><span class="line">			req.add_skill_location(m_ClickReqLocation.Z);</span><br><span class="line">		&#125;</span><br><span class="line">		LogicMessageClient::GetInstance().SerialzeAndSend(&amp;req, faith::e_msgindex_c2s_skill_response_click);</span><br><span class="line">		</span><br><span class="line">		m_ClickReqLocation = FVector::ZeroVector;</span><br><span class="line">		<span class="keyword">return</span> <span class="literal">true</span>;</span><br><span class="line">	&#125;</span><br><span class="line">	<span class="keyword">return</span> <span class="literal">false</span>;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<p>根据 e_msgindex_c2s_skill_response_click 消息头我们去服务器端找到处理的逻辑函数</p>
<figure class="highlight c++"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br></pre></td><td class="code"><pre><span class="line"><span class="function"><span class="keyword">void</span> <span class="title">SkillResponseClick</span><span class="params">(uint32 connindex, <span class="keyword">const</span> <span class="keyword">void</span> *data_ptr, <span class="keyword">size_t</span> data_len)</span> </span>&#123;</span><br><span class="line">		int32 unit_index = <span class="number">0</span>;</span><br><span class="line">		parse_msg::getInstance().parse_clientuid_from_msg_new(data_ptr, unit_index);</span><br><span class="line">		player&amp; current_player = unit_man::get_instance().get_player(unit_index);</span><br><span class="line">		<span class="keyword">if</span> (e_unit_class_null == current_player.get_class_state()) &#123;</span><br><span class="line">			<span class="keyword">return</span>;</span><br><span class="line">		&#125;</span><br><span class="line"></span><br><span class="line">		skill_proto_response_click request;</span><br><span class="line">		<span class="keyword">bool</span> bOK = parse_msg::getInstance().parse_message_new(&amp;request, data_ptr, data_len);</span><br><span class="line">		<span class="keyword">if</span> (!bOK) &#123;</span><br><span class="line">			<span class="keyword">return</span>;</span><br><span class="line">		&#125;</span><br><span class="line">		skill_click_response_param param;</span><br><span class="line">		param.skill_id = request.skill_id();</span><br><span class="line">		<span class="keyword">if</span> (request.skill_location_size() == <span class="number">3</span>) &#123;</span><br><span class="line">			param.skill_location.x = request.skill_location(<span class="number">0</span>);</span><br><span class="line">			param.skill_location.y = request.skill_location(<span class="number">1</span>);</span><br><span class="line">			param.skill_location.z = request.skill_location(<span class="number">2</span>);</span><br><span class="line">		&#125;</span><br><span class="line"></span><br><span class="line">		skill_set&amp; skill_set = skill_manager::get_instance().find_skill_set(unit_index);</span><br><span class="line">		<span class="keyword">if</span> (skill_set.IsValid()) &#123;</span><br><span class="line">			skill_set.ResponseSkillClick(param);</span><br><span class="line">		&#125;</span><br><span class="line">	&#125;</span><br></pre></td></tr></table></figure>

<p>在里面会做数量，技能释放等等等very多的逻辑 很是复杂。<br>于是换了种思路，我们直接在服务器端打断点，通过不断地向上返回，大概的代码图如下</p>
<p><img src="https://sabistianblogimg.oss-cn-beijing.aliyuncs.com/40.png" alt="40"><br>经过不断的跳转，寻找定义</p>
<figure class="highlight c++"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">player_ptr.change_hp(addHp, unit_index, <span class="literal">true</span>, <span class="literal">nullptr</span>, <span class="literal">nullptr</span>, <span class="literal">true</span>);</span><br></pre></td></tr></table></figure>

<p>而且加血是通过传入负值，并且在出生岛是无视伤害的。<br>修改玩家经验</p>
<figure class="highlight c++"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">player_ptr.add_exp(addExp, <span class="literal">true</span>, <span class="literal">false</span>, <span class="literal">false</span>);</span><br></pre></td></tr></table></figure>

<p>具体实现</p>
<figure class="highlight c++"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br><span class="line">105</span><br><span class="line">106</span><br><span class="line">107</span><br><span class="line">108</span><br><span class="line">109</span><br><span class="line">110</span><br><span class="line">111</span><br><span class="line">112</span><br><span class="line">113</span><br><span class="line">114</span><br><span class="line">115</span><br><span class="line">116</span><br><span class="line">117</span><br><span class="line">118</span><br><span class="line">119</span><br><span class="line">120</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">void</span> player::add_exp(int64 exp_value, <span class="keyword">bool</span> is_need_show, <span class="keyword">bool</span> gm, <span class="keyword">bool</span> grade_up)</span><br><span class="line">	&#123;</span><br><span class="line">		int32 count = <span class="number">0</span>;</span><br><span class="line">		<span class="keyword">bool</span> IsLevelUp = <span class="literal">false</span>;</span><br><span class="line">		<span class="keyword">bool</span> IsLevelMax = <span class="literal">false</span>;</span><br><span class="line">		int32 showed_value = exp_value;</span><br><span class="line">		PlayerInitTemplate * player_init_template_ptr = TemplateManager&lt;PlayerInitTemplate&gt;::GetTemplate(get_unit_info(e_role_info_template_id));</span><br><span class="line">		<span class="keyword">if</span> (<span class="literal">nullptr</span> == player_init_template_ptr)</span><br><span class="line">		&#123;</span><br><span class="line">			<span class="keyword">return</span>;</span><br><span class="line">		&#125;</span><br><span class="line">		<span class="keyword">while</span> (count &lt; player_init_template_ptr-&gt;LevelMax)</span><br><span class="line">		&#123;</span><br><span class="line">			<span class="keyword">if</span> (<span class="literal">false</span> == can_add_exp())</span><br><span class="line">			&#123;</span><br><span class="line">				<span class="keyword">break</span>;</span><br><span class="line">			&#125;</span><br><span class="line">			count++;</span><br><span class="line">			int64 current_exp = get_money_data(e_money_type_exp);</span><br><span class="line">			PlayerUpgradeTemplate* template_ptr = template_manager::get_instance().get_template&lt;PlayerUpgradeTemplate&gt;(<span class="string">"PlayerUpgradeTemplate"</span>, get_unit_info(e_role_info_upgrade_id));</span><br><span class="line">			<span class="keyword">if</span> (<span class="literal">nullptr</span> == template_ptr)</span><br><span class="line">			&#123;</span><br><span class="line">				<span class="keyword">break</span>;</span><br><span class="line">			&#125;</span><br><span class="line"></span><br><span class="line">			<span class="comment">// 判断是否已经达到当前转生数下的满级。如果已经达到了满级就不会再升级，但是经验值</span></span><br><span class="line">			<span class="comment">// 依旧可以累积，这个累积值不会超过当前满级的经验的500%</span></span><br><span class="line">			<span class="keyword">if</span> (!grade_up &amp;&amp; template_ptr-&gt;Level &gt;= player_init_template_ptr-&gt;LevelMax)</span><br><span class="line">			&#123;</span><br><span class="line">				IsLevelMax = <span class="literal">true</span>;</span><br><span class="line">			&#125;</span><br><span class="line"></span><br><span class="line">			int64 up_level_exp = init_unit::change_string_to_i64(template_ptr-&gt;NextLevelExp);</span><br><span class="line"></span><br><span class="line">			int64 need_exp = up_level_exp - current_exp;</span><br><span class="line">			<span class="keyword">if</span> (need_exp &lt; <span class="number">0.0f</span>)</span><br><span class="line">			&#123;</span><br><span class="line">				need_exp = <span class="number">0.0f</span>;</span><br><span class="line">			&#125;</span><br><span class="line">			</span><br><span class="line">			<span class="keyword">if</span> (IsLevelMax == <span class="literal">true</span>)</span><br><span class="line">			&#123;</span><br><span class="line">				<span class="keyword">if</span> (current_exp + exp_value &lt;= up_level_exp * <span class="number">5</span>)</span><br><span class="line">				&#123;</span><br><span class="line">					add_money(e_money_type_exp, exp_value);</span><br><span class="line">					<span class="keyword">break</span>;</span><br><span class="line">				&#125;</span><br><span class="line">				<span class="keyword">else</span></span><br><span class="line">				&#123;</span><br><span class="line">					add_money(e_money_type_exp, (up_level_exp * <span class="number">5</span> - current_exp));</span><br><span class="line">					send_character_error((int32)e_character_error_exp_full);</span><br><span class="line">					<span class="keyword">break</span>;</span><br><span class="line">				&#125;</span><br><span class="line">			&#125;</span><br><span class="line">			<span class="keyword">else</span> <span class="keyword">if</span> (!IsLevelMax &amp;&amp; exp_value &lt; need_exp)</span><br><span class="line">			&#123;</span><br><span class="line">				add_money(e_money_type_exp, exp_value);</span><br><span class="line">				<span class="keyword">break</span>;</span><br><span class="line">			&#125;</span><br><span class="line">			<span class="keyword">else</span></span><br><span class="line">			&#123;</span><br><span class="line">				exp_value -= need_exp;</span><br><span class="line">				int32 old_upgrade_id = get_unit_info(e_role_info_upgrade_id);</span><br><span class="line">				int32 old_exp_level = get_unit_info(e_role_info_exp_level);</span><br><span class="line">				</span><br><span class="line"></span><br><span class="line">				<span class="comment">// 升级!将玩家当前等级的属性模板更换成下一级的属性模板</span></span><br><span class="line">				m_pawn_att.update_unit_att_info(old_upgrade_id, <span class="literal">false</span>);</span><br><span class="line">				m_pawn_att.update_unit_att_info(old_upgrade_id + <span class="number">1</span>, <span class="literal">true</span>);</span><br><span class="line"></span><br><span class="line">				set_unit_info(e_role_info_exp_level, old_exp_level + <span class="number">1</span>);</span><br><span class="line">				set_unit_info(e_role_info_upgrade_id, old_upgrade_id + <span class="number">1</span>);</span><br><span class="line"></span><br><span class="line">				m_cur_level_time = <span class="number">0</span>;</span><br><span class="line"></span><br><span class="line">				set_money_data(e_money_type_exp, <span class="number">0</span>);</span><br><span class="line">				skill_manager::get_instance().exp_level_up(get_array_index(), old_exp_level + <span class="number">1</span>);</span><br><span class="line"></span><br><span class="line">				IsLevelUp = <span class="literal">true</span>;</span><br><span class="line">			&#125;</span><br><span class="line">		&#125;</span><br><span class="line">		<span class="keyword">if</span> (IsLevelUp)</span><br><span class="line">		&#123;</span><br><span class="line">			GameConfigTemplate * game_config_template_ptr = globle_data::get_instance().get_game_config_template_ptr();</span><br><span class="line">			<span class="keyword">if</span> (<span class="literal">nullptr</span> == game_config_template_ptr)</span><br><span class="line">			&#123;</span><br><span class="line">				<span class="keyword">return</span>;</span><br><span class="line">			&#125;</span><br><span class="line">			buff_man::get_instance().add_buff_inst(get_array_index(), get_array_index(), game_config_template_ptr-&gt;LevelUpBuffId); <span class="comment">//挂升级特效buff</span></span><br><span class="line">			m_pawn_att.exp_levelup();</span><br><span class="line">			<span class="comment">//m_achievement_mgr.player_changed(this, eat_role_level_count);</span></span><br><span class="line">			broadcast_info_one(e_role_info_exp_level);</span><br><span class="line">			send_info_one(e_role_info_upgrade_id);</span><br><span class="line">			send_info_one(e_role_info_exp_level);</span><br><span class="line"></span><br><span class="line">			int32 new_level = get_unit_info(e_role_info_exp_level);</span><br><span class="line"></span><br><span class="line">			<span class="comment">//等级增加查看是否有可获得称号</span></span><br><span class="line">			m_title_mgr.level_up_add_title(new_level);</span><br><span class="line">			m_ranking_mgr.set_ranking_value(ERankingInfo_level_value, new_level);</span><br><span class="line">			sync_data_to_ws(e_sync_cs2ws_data_exp_level, new_level, get_unit_info(e_role_info_template_id));</span><br><span class="line">			<span class="comment">// 如果是玩家也在组队中就发送更新信息</span></span><br><span class="line">			<span class="keyword">for</span> (int32 team_type = <span class="number">0</span>; team_type &lt; e_team_type_max; ++team_type)</span><br><span class="line">			&#123;</span><br><span class="line">				<span class="keyword">if</span> (is_player_in_team((e_team_type)team_type) == <span class="literal">true</span>)</span><br><span class="line">				&#123;</span><br><span class="line">					update_player_team_member_info(ETeamMemberInfo_level, new_level);</span><br><span class="line">					update_player_team_member_info(ETeamMemberInfo_cur_hp, get_unit_att().get_unit_base_att(e_base_att_info_hp_cur));</span><br><span class="line">				&#125;</span><br><span class="line">			&#125;</span><br><span class="line">		&#125;</span><br><span class="line">		<span class="keyword">if</span> (is_need_show)</span><br><span class="line">		&#123;</span><br><span class="line">			character_proto_show_money_get show_msg;</span><br><span class="line">			show_msg.set_money_type(e_money_type_exp);</span><br><span class="line">			show_msg.set_money_num(showed_value);</span><br><span class="line">			send_message_to_self(&amp;show_msg, e_msgindex_s2c_show_money_get);</span><br><span class="line">		&#125;</span><br><span class="line">		send_money_one(e_money_type_exp);</span><br><span class="line">	&#125;</span><br></pre></td></tr></table></figure>

<h2 id="修改技能数量"><a href="#修改技能数量" class="headerlink" title="修改技能数量"></a>修改技能数量</h2><p>这个就通过传不同的消息来做了，用GL指令后面实现的来完成目的。</p>
<figure class="highlight c++"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">AFaithCharacter* CharPtr = UFaithCharacterMan::GetInstance().GetMainCharacter();</span><br><span class="line">	<span class="keyword">if</span> (CharPtr) &#123;</span><br><span class="line">		faith::skill_proto_slot_count req;</span><br><span class="line">		req.set_unit_guid(FGLGameUtils::FGuid2UInt64(CharPtr-&gt;GetLogicGuid()));</span><br><span class="line">		req.set_slot_id(<span class="number">6</span>);</span><br><span class="line">		req.set_skill_count(<span class="number">1</span>);</span><br><span class="line">		LogicMessageClient::GetInstance().SerialzeAndSend(&amp;req, faith::e_msgindex_c2s_skill_slot_count);</span><br><span class="line">	&#125;</span><br></pre></td></tr></table></figure>

<h2 id="修改移动速度"><a href="#修改移动速度" class="headerlink" title="修改移动速度"></a>修改移动速度</h2><figure class="highlight c++"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">faith::character_proto_character_gmorder_message msg;</span><br><span class="line">msg.set_command_type(faith::egot_modify_unit_attr_move_speed);</span><br><span class="line">msg.set_sub_command_type(<span class="number">0</span>);</span><br><span class="line">msg.add_arg_int(<span class="number">300</span>);</span><br><span class="line">LogicMessageClient::GetInstance().SerialzeAndSend(&amp;msg, faith::e_msgindex_c2s_character_gmorder_message);</span><br></pre></td></tr></table></figure>


      
    </div>
    
    
    

    

    
      <div>
        <div style="padding: 10px 0; margin: 20px auto; width: 90%; text-align: center;">
  <div></div>
  <button id="rewardButton" disable="enable" onclick="var qr = document.getElementById('QR'); if (qr.style.display === 'none') {qr.style.display='block';} else {qr.style.display='none'}">
    <span>打赏</span>
  </button>
  <div id="QR" style="display: none;">

    
      <div id="wechat" style="display: inline-block">
        <img id="wechat_qr" src="/images/wechatpay.jpg" alt="邱灵雨 微信支付">
        <p>微信支付</p>
      </div>
    

    
      <div id="alipay" style="display: inline-block">
        <img id="alipay_qr" src="/images/alipay.jpg" alt="邱灵雨 支付宝">
        <p>支付宝</p>
      </div>
    

    

  </div>
</div>

      </div>
    

    
      <div>
        
      <ul class="post-copyright">
         <li class="post-copyright-link">
          <strong>本文作者：</strong>
          <a href="/" title="欢迎访问 邱灵雨 的个人博客">邱灵雨</a>
        </li>

        <li class="post-copyright-link">
          <strong>本文链接：</strong>
          <a href="http://sabistian.cn/2019/08/17/PC-hero 道具模块文档五 - 修改玩家数值/" title="PC-Hero 的道具模块(五) —— 修改玩家数值">http://sabistian.cn/2019/08/17/PC-hero 道具模块文档五 - 修改玩家数值/</a>
        </li>

        <li class="post-copyright-license">
          <strong>版权声明： </strong>
          本文由 邱灵雨 原创，采用 <a href="https://creativecommons.org/licenses/by-nc-nd/4.0/deed.zh" rel="license" target="_blank">保留署名-非商业性使用-禁止演绎 4.0-国际许可协议</a> <br>转载请保留以上声明信息！
        </li>
      </ul>
<div style="text-align:center;color: #ccc;font-size:14px;">
------ 本文结束 ------</div>
      </div>
    

    <footer class="post-footer">
      
      
        <div class="post-tags">
          
            <a href="/tags/C/" rel="tag"><i class="fa fa-tag"></i> C++</a>
          
            <a href="/tags/Unreal-Engine/" rel="tag"><i class="fa fa-tag"></i> Unreal Engine</a>
          
            <a href="/tags/Excel-读表/" rel="tag"><i class="fa fa-tag"></i> Excel 读表</a>
          
        </div>
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/2019/08/17/PC-hero 道具模块文档四 - 基于Protobuf的通信方式和双端逻辑/" rel="next" title="PC-Hero 的道具模块(四)——基于Protobuf的通信方式和双端逻辑">
                <i class="fa fa-chevron-left"></i> PC-Hero 的道具模块(四)——基于Protobuf的通信方式和双端逻辑
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/2019/08/17/蓝图中的C++编程(一)--蓝图调用C++函数&C++调用蓝图/" rel="prev" title="蓝图中的C++ 编程">
                蓝图中的C++ 编程 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          

  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <img class="site-author-image" itemprop="image" src="/images/headicon.png" alt="邱灵雨">
            
              <p class="site-author-name" itemprop="name">邱灵雨</p>
              <p class="site-description motion-element" itemprop="description">灵雨既零</p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/archives/">
              
                  <span class="site-state-item-count">21</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-categories">
                <a href="/categories/index.html">
                  <span class="site-state-item-count">7</span>
                  <span class="site-state-item-name">分类</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-tags">
                <a href="/tags/index.html">
                  <span class="site-state-item-count">20</span>
                  <span class="site-state-item-name">标签</span>
                </a>
              </div>
            

          </nav>

          

          
            <div class="links-of-author motion-element">
                
                  <span class="links-of-author-item">
                    <a href="https://github.com/sabistian" target="_blank" title="GitHub">
                      
                        <i class="fa fa-fw fa-github"></i>GitHub</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="mailto:sebistian@163.com" target="_blank" title="Mail">
                      
                        <i class="fa fa-fw fa-envelope"></i>Mail</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="https://weibo.com/5975979965/profile?rightmod=1&wvr=6&mod=personinfo" target="_blank" title="Weibo">
                      
                        <i class="fa fa-fw fa-weibo"></i>Weibo</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="https://www.zhihu.com/people/kuai-shen-l/activities" target="_blank" title="ZhiHu">
                      
                        <i class="fa fa-fw fa-globe"></i>ZhiHu</a>
                  </span>
                
            </div>
          

          
          

          
          

          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#PC-Hero-的道具模块-五-——-修改玩家数值"><span class="nav-number">1.</span> <span class="nav-text">PC-Hero 的道具模块(五) —— 修改玩家数值</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#读表"><span class="nav-number">1.1.</span> <span class="nav-text">读表</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#修改玩家血，经验等基础数值"><span class="nav-number">1.2.</span> <span class="nav-text">修改玩家血，经验等基础数值</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#修改技能数量"><span class="nav-number">1.3.</span> <span class="nav-text">修改技能数量</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#修改移动速度"><span class="nav-number">1.4.</span> <span class="nav-text">修改移动速度</span></a></li></ol></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>

<div class="copyright">&copy; <span itemprop="copyrightYear">2020</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">邱灵雨</span>

  
</div>

<div class="powered-by">
<i class="fa fa-user-md"></i><span id="busuanzi_container_site_uv">
  本站访客数:<span id="busuanzi_value_site_uv"></span>
</span>
</div>


  <div class="powered-by">由 <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> 强力驱动</div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">主题 &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Gemini</a> v5.1.4</div>




        







        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  












  
  
    <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.4"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.4"></script>



  
  


  <script type="text/javascript" src="/js/src/affix.js?v=5.1.4"></script>

  <script type="text/javascript" src="/js/src/schemes/pisces.js?v=5.1.4"></script>



  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.4"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.4"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.4"></script>



  


  




	





  





  












  





  

  

  

  
  

  

  

  

</body>
</html>
